var vm = new Vue({
	el: '#app',
	data: {
	},
	methods: {
		/**
		 * 重置搜索栏
		 * @returns
		 */
		reset: function() {
			vm.search.id = '';
			vm.search.lockDay = '';
		},
		initTable: function() {
			// 表格数据请求地址
			var ajaxUrl = baseURL + 'userLock/list?type=0';
			// 配置表头
			var arr = [{
					"data": "userId"
				},
				{
					"data": "lockDay"
				},
				{
					"data": "reason"
				},
				{
					"data": "status",
					"render": function(data, type, row) {
						return data == 1 ?'激活':'封禁';
					}
				},
				{
					"data": "untieTime"
				},
				{
					"data": "createTime"
				},
				{
					"data": "creatUser"
				},
				{
					"data": "remark"
				}
			];
			// 初始化表格
			TABLE.init(ajaxUrl, arr);
		}
	},
	mounted() {
		this.initTable();
	}
})

function searchOrder(type) {
	
	$('#search-form')[0].reset();
	reload(baseURL + 'userLock/list?type=' + type);
}


